<style type="text/css">
.in a:hover {color:#F00}
.menu:hover img{
    display:block; 
} 
.menu img{
	position: fixed;
    top: 49px;
    left: 132px;
    width: 100px;
    height: 220px;
    z-index: 9999;
    display:none; 
}
</style>
<div class="top-bar">
	<div class="in">
		<a class="menu" href="/" >用手机逛逛<img src="xxx.jpg"/></a>
		<a class="myorder" href="/help/question.html" title="常见问题">常见问题</a>
		<a class="myorder" href="/page/index/id/48.html" title="联系我们">联系我们</a>
		<a class="myorder" href="/page/index/id/45.html" title="关于我们">关于我们</a>
		<a class="myorder" href="/user" title="我的订单中心">我的订单中心</a>
		
	</div>
</div>
<div class="header" id="nav">
	<div class="container">
		<a class="logo" title="{$site_name}" href="__ROOT__/"></a>
		<div class="nav">
			<a class="index" <?php if($post_title != "常见问题" && $brandid == 0) {?> style="color:#f9be00" <?php }?>  href="__ROOT__/" >首页</a>
			<a class="cur" <?php if($brandid <= 12 && $brandid != 0) {?> style="color:#f9be00" <?php }?> href="/brand/1.html" >手机回收</a>
			<a class="cur" <?php if($brandid == 13) {?> style="color:#f9be00" <?php }?> href="/brand/13.html" >平板回收</a>
			<a class="help" <?php if($post_title == "常见问题") {?> style="color:#f9be00" <?php }?> href="/help/">帮助中心</a>
    	</div>
	</div>
</div>
<div class="header" id="navFixed">
	<div class="container">
		<a class="logo" title="{$site_name}" href="__ROOT__/"></a>
		<div class="nav">
			<a class="index" <?php if($post_title != "常见问题" && $brandid == 0) {?> style="color:#f9be00" <?php }?>  href="__ROOT__/" >首页</a>
			<a class="cur" <?php if($brandid <= 12 && $brandid != 0) {?> style="color:#f9be00" <?php }?> href="/brand/1.html" >手机回收</a>
			<a  <?php if($brandid == 13) {?> style="color:#f9be00" <?php }?> href="/brand/13.html">平板回收</a>
			<a <?php if($post_title == "常见问题") {?> style="color:#f9be00" <?php }?>  href="/about/">帮助中心</a>
    	</div>
	</div>
</div>
<script type="text/javascript">
window.onload=function(){
    var nav=document.getElementById('nav');
    var navFixed=document.getElementById('navFixed');
    window.onscroll=function(){
        var scrollTop=document.documentElement.scrollTop||document.body.scrollTop;
        if(scrollTop>nav.offsetTop){
            navFixed.style.display='block';
        }else if(scrollTop<nav.offsetTop){
            navFixed.style.display='none';
        }
    }
};
</script>